package com.ph.util;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

public class DBUtil {
	public static void setNullObject(Connection con, PreparedStatement pStmt, ResultSet rs) {
		try {
			if (pStmt != null) {
				pStmt.close();
				pStmt = null;
			}

			if (con != null) {
				con.close();
				con = null;
			}

			if (rs != null) {
				rs.close();
				rs = null;
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
}
